home *** CD-ROM | disk | FTP | other *** search
/ Libris Britannia 4 / science library(b).zip / science library(b) / PROGRAMM / DB_CLIPP / 0643C.ZIP / TWENTY.DOC < prev    next >
Text File  |  1987-02-01  |  2KB  |  44 lines

  1. TITLE   Twenty Files - A dBASE III Plus Callable Module
  2.  
  3.         ; by James Troutman (JT)
  4.         ; Version 1.00
  5.  
  6. COMMENT *
  7.    This is the assembly language source code for a module that can be
  8.    LOADed and CALLed in dBASE III Plus.  It requires DOS 3.xx or greater.
  9.    When assembled (with MASM) it should be LINKed and converted to a binary
  10.    (.BIN) file with EXE2BIN.  It uses what is currently an undocumented
  11.    feature of DOS -- namely the ability to move the file handle table and
  12.    increase its length to allow more than the default 20 open files.
  13.    However, since dBASE itself imposes a limit of 20 files, it does not
  14.    make sense to increase the handle table to more than 25 entries.  This
  15.    allows DOS to have its 5 (STDIN, STDOUT, STDERR, STDAUX, and STDPRN) and
  16.    still leave room for 20 active files in dBASE.
  17.  
  18.    [Actually, the dBASE programmers were clever enough to close the STDAUX
  19.    device (no one uses it, anyway) and use its freed handle for the dBASE
  20.    overlay file.]
  21.  
  22.    A problem with an earlier test version of this module has been fixed.
  23.    It no longer makes any difference how many times the module is LOADed or
  24.    CALLed -- the expanded handle table is no longer stored within the
  25.    module's memory, but in an unused (I hope!) area of dBASE's Program
  26.    Segment Prefix.  Although I have tested this, PLEASE use it
  27.    with caution, and please let me know of any problems (or successes!)
  28.    that you have with it.
  29.  
  30.    SYNTAX:
  31.            LOAD Twenty
  32.            CALL Twenty
  33.  
  34.    ... and get ready to open your 20 files!
  35.  
  36.    Good Luck!
  37.    James Troutman (JT)
  38.    CompuServe PPN 74746,1567
  39.  
  40.    P.S. See the May, 1986 issue of Dr. Dobbs Journal, pp 107-108 for more
  41.    information about how and why this program works.  If I get ambitious, I
  42.    will upload a version with a .DOC file that will explain some of the
  43.    theory of why it works.
  44.